
using System;

namespace SpotifyGenNHibernate.EN.Spotify
{
        public class AdministradorEN
        {
        /**
         *
         */

        private int id;

        /**
         *
         */

        private String usuario;

        /**
         *
         */

        private String password;





        public virtual int Id { get { return id; } set { id = value;  } }


        public virtual String Usuario { get { return usuario; } set { usuario = value;  } }


        public virtual String Password { get { return password; } set { password = value;  } }



        public AdministradorEN()
        {
        }



        public AdministradorEN(int id, String usuario, String password)
        {
                this.init (id, usuario, password);
        }


        public AdministradorEN(AdministradorEN administrador)
        {
                this.init (administrador.Id, administrador.Usuario, administrador.Password);
        }

        private void init (int id, String usuario, String password)
        {
                this.Id = id;


                this.Usuario = usuario;

                this.Password = password;
        }

        public override bool Equals (object obj)
        {
                if (obj == null)
                        return false;
                AdministradorEN t = obj as AdministradorEN;
                if (t == null)
                        return false;
                if (Id.Equals (t.Id))
                        return true;
                else
                        return false;
        }

        public override int GetHashCode ()
        {
                int hash = 13;

                hash += (null == Id ? 0 : this.Id.GetHashCode ());
                return hash;
        }
        }
}
